﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ImageEditor.ascx.cs" Inherits="CustomControls_ImageEditor" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            <asp:TextBox ID="txtURL" runat="server" Width="400px" />
        </td>
        <td>
            <asp:Button ID="btnLoad" runat="server" Text="Get image" OnClick="btnLoad_Click"
                CausesValidation="false" />
        </td>
        <td>
            <asp:Button ID="btnLoadWithOverlay" runat="server" Text="Get image with overlay"
                OnClick="btnLoadWithOverlay_Click" CausesValidation="false" />
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <asp:Image runat="server" ID="imgShow" />
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0">
                        <ProgressTemplate>
                            &nbsp;<img id="Img1" src="~/Images/ajax-loader.gif" runat="server" alt="Loading" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2">
            <asp:Button ID="btnSaveToDisk" runat="server" Text="Save to disk" OnClick="btnbtnSaveToDisk_Click"
                CausesValidation="false" />
        </td>
    </tr>
</table>
